<template>
  <div style="margin-top: 20px;">
    <div class="label-div">
      <label for="" style="display: inline-block;margin-right:30px;width: 200px;text-align: right;"><span
        style="color: red;">*</span>当前状态:</label>
      <el-input v-model="status" placeholder="请输入状态" style="width: 300px"></el-input>
    </div>
    <div class="label-div" style="overflow: hidden;">
      <label for="" style="display: inline-block;margin-right:30px;width: 200px;text-align: right;float: left;"><span
        style="color: red;">*</span>二维码:</label>
      <p style="float: left;">
        <img src="../../../build/exampleQrcode.png"/>
      </p>
    </div>
    <p v-if="permission == 3" style="width: 600px;text-align: center">
      <el-button type="primary" icon="el-icon-check">保存</el-button>
    </p>
  </div>
</template>
<script>
  import { wxapp_index } from '@/utils/permission'
  export default {
    data() {
      return {
        permission: 3,
        status: '已授权'
      }
    },
    created() {
      this.getModelPermission()
    },
    methods: {
      getModelPermission() {
        this.permission = wxapp_index()
      }
    }
  }
</script>
<style>
  p {
    margin: 0;
    padding: 0;
  }

  .label-div {
    padding: 20px 0;
  }
</style>
